package com.cus.tom.transfer.view;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.FrameLayout;

import androidx.annotation.NonNull;

import com.cus.tom.transfer.databinding.CustomTabLayoutBinding;


public class CustomTabView extends FrameLayout {

    public CustomTabLayoutBinding binding;

    public CustomTabView(@NonNull Context context) {
        super(context);
        binding = CustomTabLayoutBinding.inflate(LayoutInflater.from(context), this);
    }

    @Override
    public void setSelected(boolean selected) {
        super.setSelected(selected);
        binding.tv.setTextColor(selected ? 0xff333333 : 0xff888888);
    }
}
